#ifndef PROCESSMANAGER_H
#define PROCESSMANAGER_H

#include <QObject>
#include <QProcess>
#include "singleton.h"

class ProcessManager : public QObject,public Singleton<ProcessManager>
{
    Q_OBJECT
    friend class Singleton<ProcessManager>;
public:
    void startProCtrl();//启动主控程序
    void stopProCtrl();//关闭主控程序

private:
    explicit ProcessManager(QObject *parent = NULL);
    QProcess proCtrl;//主控程序

private slots:
    void proCtrlStateChanged(QProcess::ProcessState state);
    void proCtrlError(QProcess::ProcessError);
    void proCtrlMsg();
signals:

public slots:
};

#endif // PORCESSMANAGER_H
